import { post } from '@/utils/http'

/**
 * 用户登录
 * @param {object} userData {username:xxx,password:xx}
 * @returns Promise<{code,msg,data:{uid,token,nickname}}>
 */
export const doLoginApi = userData => post('/api/login', userData)
